package Janelas.SQL;

import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JButton;
import javax.swing.JLabel;
import java.awt.Font;
import javax.swing.JTextField;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class DeletarUser extends JFrame {

	private static final long serialVersionUID = 2L;
	private JPanel contentPane;
	private JTextField textField;

	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					DeletarUser frame = new DeletarUser();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	public DeletarUser() {
		setTitle("Apagar Usu\u00E1rio - Occurence Safe");
		setResizable(false);
		setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		setBounds(440, 290, 360, 210);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JButton button = new JButton("Apagar");
		button.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				
				dispose();
			}
		});
		button.setBounds(212, 51, 89, 23);
		contentPane.add(button);
		
		JLabel lblPreenchaOsCampos = new JLabel("Digite o CPF do usu\u00E1rio que deseja excluir:");
		lblPreenchaOsCampos.setFont(new Font("Tahoma", Font.PLAIN, 13));
		lblPreenchaOsCampos.setBounds(10, 11, 286, 23);
		contentPane.add(lblPreenchaOsCampos);
		
		JLabel lblNewLabel = new JLabel("CPF:");
		lblNewLabel.setBounds(10, 55, 46, 14);
		contentPane.add(lblNewLabel);
		
		textField = new JTextField();
		textField.setBounds(66, 52, 111, 20);
		contentPane.add(textField);
		textField.setColumns(10);
		
		JLabel lblOccurenceSafe = new JLabel("Occurence Safe");
		lblOccurenceSafe.setFont(new Font("Tahoma", Font.BOLD | Font.ITALIC, 20));
		lblOccurenceSafe.setBounds(152, 148, 192, 23);
		contentPane.add(lblOccurenceSafe);
	}
}
